var url=location.href;
var value="http://tieba.baidu.com/f/user/passport?jumpUrl="
var url_indexOf=url.indexOf(value);
var url_new;
if(url_indexOf != -1)
{
    url_new=url.slice(value.length);
    value="http://tieba.baidu.comhttp:";
    url_indexOf=url_new.indexOf(value);
    if(url_indexOf != -1)
    {
        url_new=url_new.slice(value.length-5);
    }
   window.location=url_new;
}
